using System;
using FreshCommonUtility.Dapper;
using WeChatCmsCommon.EnumBusiness;

namespace WeChatModel.DatabaseModel
{
    /// <summary>
    /// persontag table in MySQL5
    /// 人员标签表
    /// </summary>
    [Table("persontag")]
    public class PersonTagModel
    {
        /// <summary>
        /// 标签ID，主键
        /// </summary>
        [Key]
        public Int64 Id { get; set; }

        /// <summary>
        /// 人员ID
        /// </summary>
        public Int64 PersonId { get; set; }

        /// <summary>
        /// 标签名称
        /// </summary>
        public String TagName { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public Int64 UserId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 创建用户ID
        /// </summary>
        public Int64 CreateUserId { get; set; }

        /// <summary>
        /// 更新用户ID
        /// </summary>
        public Int64 UpdateUserId { get; set; }

        /// <summary>
        /// 是否删除 0:未删除 1:已删除
        /// </summary>
        public FlagEnum IsDel { get; set; }

        /// <summary>
        /// 是否有效 0:无效 1:有效
        /// </summary>
        public FlagEnum IsValid { get; set; }

        /// <summary>
        /// 排序值
        /// </summary>
        public Int32 Sort { get; set; }
    }
}